
import 'package:flutter/cupertino.dart';
import 'dart:ui';

import 'package:flutter/material.dart';

class AppGlobalConfig {
  static const USERINFO = 'USERINFO'; //用户登录数据key
  static const SEARCHRECORD = 'SEARCHRECORD'; //用户登录数据key
  static const SEARCHENTERPRISE = 'SEARCHENTERPRISE'; //用户登录数据key

}

// 公用的一些颜色
class AppColor {
  static const ScaffoldBackgoundColor = Colors.white;
  static const btnNavBarIconColor = Color(0xffE54D6D);
  static const SerchBarColor = Color(0xFFEEEEEE);
  static const gradientColor = LinearGradient(colors: [Color(0xffff3f7f), Color(0xffff7a3f)]);
  static const gradientColorHigh = LinearGradient(colors: [Color(0xffff21c9), Color(0xffff4c56)]);
  static const gradientColorLight = LinearGradient(colors: [Color(0Xffff48c4), Color(0Xffff9092)]);
  static const lightGray = Color(0xff747474);
//  static const dividerColor =  Color(0xfff0f0f0);
  static const dividerColor =  Color(0xfff0f0f0);
}

// 公用的一些样式
class AppCommonWidget {
  static var dividerCommon = Container(width: AppCustomSize.ScreentWidght, height: 1, decoration: BoxDecoration(color: Color(0xfff0f0f0)),);
}

// 通用图标
class IconFonts {
  IconFonts._();
  /// iconfont:flutter base
  static const String fontFamily = 'IconFont';

  static const IconData pageEmpty = IconData(0xe63c, fontFamily: fontFamily);
  static const IconData pageError = IconData(0xe600, fontFamily: fontFamily);
  static const IconData pageNetworkError = IconData(0xe678, fontFamily: fontFamily);
  static const IconData pageUnAuth = IconData(0xe65f, fontFamily: fontFamily);

  static const Icon rightIcon = Icon(Icons.arrow_forward_ios, size: 14, color: Color(0xffd9d9d9));

}

// 通用的一些尺寸
class AppCustomSize {
  static const IconDataSize = 35.0;
  static const HomeAppBarHeight = 60.0;
  static var ScreentWidght = window.physicalSize.width / window.devicePixelRatio; //物理分辨率 / drp
  static var ScreentHeight = window.physicalSize.height;
  static var enNum = window.physicalSize.width / 3 - 30;
  static const AppBarElevation = 1.0;
}

// 通用的一些边距
class AppPadding {
  static const Padding10 = 10.0;
  static const Padding5 = 5.0;
}

// 通用的一些圆角
class AppRadiusValue {
  static const AppRadiusMiniValue = 10.0;
}

// 字休大小
class AppFontSize {
  static const Size10 = 10.0;
  static const Size12 = 12.0;
  static const Size14 = 14.0;
  static const Size16 = 16.0;
  static const Size18 = 18.0;
  static const Size20 = 20.0;
  static const Size22 = 22.0;
  static const Size24 = 24.0;
  static const Size26 = 26.0;
  static const Size28 = 28.0;
  static const Size30 = 30.0;
  static const Size32 = 32.0;
}

// icon大小
class AppIconSize {
  static const Size10 = 10.0;
  static const Size12 = 12.0;
  static const Size14 = 14.0;
  static const Size16 = 16.0;
  static const Size18 = 18.0;
  static const Size20 = 20.0;
  static const Size22 = 22.0;
  static const Size24 = 24.0;
  static const Size26 = 26.0;
  static const Size28 = 28.0;
  static const Size30 = 30.0;
  static const Size32 = 32.0;
}


class AppImageUrl {

  static const AppTestUrl = 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1572243374&di=9f5478f764b3cb481495642d87cd8680&imgtype=jpg&er=1&src=http%3A%2F%2Fcdn.duitang.com%2Fuploads%2Fblog%2F201404%2F22%2F20140422142715_8GtUk.thumb.600_0.jpeg';
  static const AppBannerUrl = 'http://img.pc841.com/2018/0320/20180320095117506.jpg';
  static const AppSwiperUrls =[
   ' http://img.pc841.com/2018/0320/20180320095117506.jpg',
  'http://img.pc841.com/2018/0320/20180320095117506.jpg',
    'http://img.pc841.com/2018/0320/20180320095117506.jpg',
  ];
}

